//
//  PullDownMenu.h
//  PropertyMananger
//
//  Created by Mansion on 17/1/1.
//  Copyright © 2017年 BH. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PullDownMenu;

typedef enum
{
    IndicatorStateShow = 0,
    IndicatorStateHide
}
IndicatorStatus;

typedef enum
{
    BackGroundViewStatusShow = 0,
    BackGroundViewStatusHide
}
BackGroundViewStatus;

@protocol PullDownMenuDelegate <NSObject>

- (void)PullDownMenu:(PullDownMenu *)pullDownMenu didSelectRowAtColumn:(NSInteger)column row:(NSInteger)row;

@end

@interface PullDownMenu : UIView<UITableViewDelegate, UITableViewDataSource>

- (PullDownMenu *)initWithArray:(NSArray *)array selectedColor:(UIColor *)color;

@property (nonatomic) id<PullDownMenuDelegate> delegate;

@property (nonatomic,strong) UITableView * MTableView;
@property (nonatomic,strong) UITableViewCell * cell;

@property (nonatomic , strong) NSArray * array;
@property (nonatomic,strong) NSMutableArray * titles;

@property (nonatomic,assign) BOOL isShow;

@property (nonatomic,strong)  UIView * backGroundView;

//隐藏遮罩层
- (void)hiddenBackground;
//隐藏下拉列表
- (void)hiddenSelectedView:(UITableView *)tableView;
-(void)hidden;
@end


// CALayerCategory
@interface CALayer (MXAddAnimationAndValue)

- (void)addAnimation:(CAAnimation *)anim andValue:(NSValue *)value forKeyPath:(NSString *)keyPath;
@end



